package com.favccxx.search.domain.project;

import com.favccxx.search.domain.common.BaseDoc;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.*;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Column;
import javax.persistence.EntityListeners;
import java.time.LocalDateTime;

/**
 * @author favccxx
 * @date 5/13/2020 02:51 PM
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "us_project")
public class Project extends BaseDoc {

    @Id
    private String id;

    @Indexed(unique = true)
    private String code;

    private String name;

    private String status;

    private String description;




}
